package account

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/account/v1"
)

func (c *ControllerV1) AccountResetPwd(ctx context.Context, req *v1.AccountResetPwdReq) (res *v1.AccountResetPwdRes, err error) {
	res = &v1.AccountResetPwdRes{}
	err = service.Account().ResetPwd(ctx, &req.AccountResetPwdInput)
	return
}
